package com.security.spring.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
public class HelloController extends BaseController {

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }

    @GetMapping("/user-info")
    public String getUserInfo() {
        return getUser().getUsername();
    }
}
